# -*- coding: utf-8 -*-

def _init():
    global _global_dict
    global _glo_user_info
    global _glo_room_info
    _global_dict = {}


def set_value(key, value):
    """ 定义一个全局变量 """
    # global _global_dict
    _global_dict[key] = value
    print("[gol]set_value",key,"=>",value)


def get_value(key):
    try:
        return _global_dict[key]
    except KeyError:
        print("key err")
        exit()
        return None
